package com.bytezero.triangle;

public class TriAngle 
{
	//私有属性
	private double base; //边长
	private double height;  //高
	
	//构造器
	public TriAngle()
	{
		
	}
	
	public TriAngle(double b,double h)
	{
		base = b;
		height = h;
	}
	
	//方法
	public void setBase(double b)
	{
		base = b;
	}
	
	public double getBase()
	{
		return base;
	}
	
	public void setHeight(double h)
	{
		height = h;
	}
	public double getHeight()
	{
		return height;
	}
	
	
	
}
